package com.atguigu.gulimallsearch.vo;

import com.atguigu.common.es.SkuEsModel;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SearchResult {

    //查询所有商品信息
    private List<SkuEsModel> products;

    //分页信息
    //页码（页面上送）
    private Integer pageNum;
    //总记录数
    private Long total;
    //共几页
    private Integer totalPages;

    //品牌信息
    private List<BrandVo> brands;
    //分类信息
    private List<CatalogVo> catalogs;
    //属性信息
    private List<AttrVo> attrs;

    private List<Integer> pageNavs;
    //面包屑导航
    private List<NavVo> navs = new ArrayList<>();
    private List<Long> attrIds  = new ArrayList<>();

    @Data
    public static class NavVo{
        private String navName;
        private String navValue;
        private String link;

    }

    @Data
    public static class BrandVo{

        private Long brandId;

        private String brandName;

        private String brandImg;
    }

    @Data
    public static class CatalogVo {

        private Long catalogId;

        private String catalogName;
    }

    @Data
    public static class AttrVo {

        private Long attrId;

        private String attrName;

        private List<String> attrValue;
    }

}
